package org.sean.framework.es;

import lombok.Data;
import org.elasticsearch.action.DocWriteResponse;
import org.elasticsearch.action.bulk.BulkItemResponse;

import java.util.ArrayList;
import java.util.List;

/**
 * 响应结果
 */
@Data
public class BulkResult {
    /**
     * 成功响应
     */
    private List<DocWriteResponse> responses = new ArrayList<>();
    /**
     * 异常响应
     */
    private List<BulkItemResponse.Failure> failures = new ArrayList<>();
}
